home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / Implementation / Dialogs / LnkDlgEx.r < prev   
Encoding:
Text File  |  1997-02-13  |  25.4 KB  |  1,097 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        LnkDlgEx.r
  3.  
  4.     Contains:    resources for data interchange dialogs
  5.  
  6.     Owned by:    Craig Carper
  7.  
  8.     Copyright:    © 1994 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <8>      12/17/96    CC        1384387: Removed 'ALRT's 503, 504, & 505;
  13.                                     'STR 's 523, 525, & 526, and 'ppat' 506.
  14.          <7>     9/18/96    TJ        1384389 Remove RSRC names in Non-Debug
  15.                                     Builds.
  16.          <6>     9/10/96    eeh        1384356: remove dead code; 1386008:
  17.                                     AppleGuide support (incomplete)
  18.          <5>      9/4/96    EL        1306385: Remove user item that are used as
  19.                                     default button in dialog.
  20.          <4>      7/8/96    eeh        undo task 10008 (AppleGuide buttons)
  21.          <3>     6/21/96    eeh        task 10008: add buttons etc. for AppleGuide
  22.          <2>      6/7/96    eeh        T10017: tweak
  23.          <0>     6/7/96    eeh        first checked in (based on LinkDlgs.r)
  24.  
  25. */
  26.  
  27. // Picture items are used for the merge and embed icons because 32x32 ICONs
  28. // don't work well.  The desired icon size is 19(high)x16(width).  If the
  29. // display item is the desired size, the ICON is scaled.  If the display item
  30. // is 32x32, the ICONs are drawn AFTER their radio buttons and can obscure them,
  31. // even though the radio buttons are later in the item sequence.
  32.  
  33. #define SystemSevenOrBetter 1            // we want the extended types
  34. #define    SystemSevenOrLater    1            // Types.r uses this variable
  35.  
  36. #define oldTemp        // Needed to use old-style 'dctb' resource
  37. #include "Types.r"
  38. #undef oldTemp        // End of 'dctb' fix
  39.  
  40. #include "SysTypes.r"
  41.  
  42. #include "LinkDefs.h"
  43.  
  44. #ifndef _DLGDEFS_
  45. #include "DdgDefs.h"
  46. #endif
  47.  
  48. #define kDialogHeight    223
  49. #define kDialogWidth    222
  50.  
  51. #define kTopBegin                      7
  52. #define kLeading                      4
  53. #define kLeftBegin                     10
  54.  
  55. #define kLargeToSmallVerticalOffset      1
  56. #define kSmallLineHeight             12
  57. #define kRightStop                    213
  58. #define kBottomStop                    214
  59. #define kStdButtonHeight             20
  60. #define kOkCancelWidth                 60
  61. #define kOkCancelSep                 13
  62. #define kCheckboxHeight                 14
  63. #define kCheckboxWidth                 14
  64. #define kRadioButtonHeight             14
  65. #define kRadioButtonWidth             14
  66. #define kCheckboxVertSep              4
  67. #define kCheckboxHorizSep              4
  68. #define kRadioBtnVertSep              3
  69. #define kRadioBtnHorizSep              4
  70. #define kPopupHeight                 19
  71.  
  72. #define kPasteWithLinkTextTop        kTopBegin+kLargeToSmallVerticalOffset
  73. #define kPasteWithLinkTextLeft        kLeftBegin+kCheckboxWidth+kCheckboxHorizSep
  74. #define kPasteWithLinkTextWidth        78
  75. #define kPasteWithLinkTextRight        kPasteWithLinkTextLeft+kPasteWithLinkTextWidth
  76.  
  77. #define kUpdateLinksTop                kTopBegin+kCheckboxHeight+kLeading
  78. #define kUpdateLinksLeft            kLeftBegin+kCheckboxWidth+kCheckboxHorizSep
  79. #define kUpdateLinksWidth            59
  80.  
  81. #define kAutomaticRadioBtnTop        kTopBegin+kCheckboxHeight+kRadioBtnVertSep
  82. #define kAutomaticRadioBtnLeft        kLeftBegin+kCheckboxWidth+kCheckboxHorizSep+kUpdateLinksWidth+kCheckboxHorizSep
  83. #define kAutomaticTextTop            kAutomaticRadioBtnTop+kLargeToSmallVerticalOffset
  84. #define kAutomaticTextLeft            kAutomaticRadioBtnLeft+kRadioButtonWidth+kRadioBtnHorizSep
  85. #define kAutomaticTextWidth            68
  86. #define kAutomaticTextRight            kAutomaticTextLeft+kAutomaticTextWidth
  87. #define kAutoManRadioBtnSep            1
  88.  
  89. #define kManualRadioBtnTop            kAutomaticRadioBtnTop+kRadioButtonHeight+kAutoManRadioBtnSep
  90. #define kManualRadioBtnLeft            kAutomaticRadioBtnLeft
  91. #define kManualTextTop                kManualRadioBtnTop+kLargeToSmallVerticalOffset
  92. #define kManualTextLeft                kManualRadioBtnLeft+kRadioButtonWidth+kRadioBtnHorizSep
  93. #define kManualTextWidth            46
  94.  
  95. #define kManualTextRight            kManualTextLeft+kManualTextWidth
  96.  
  97. /* #define kHorizSepTop                kManualTextTop+kSmallLineHeight+kLeading */
  98. #define kHorizSepTop                62
  99.  
  100. #define kAtDestTextTop                72
  101.  
  102. #define kMergePictTop                90
  103. #define kMergePictHeight            19
  104. #define kMergePictWidth                16
  105.  
  106. #define kMergeRadioBtnTop            kMergePictTop+2        
  107. #define kMergeRadioBtnLeft            kLeftBegin+kMergePictWidth+kCheckboxHorizSep
  108. #define kMergeTextTop                kMergeRadioBtnTop+kLargeToSmallVerticalOffset
  109. #define kMergeTextLeft                kMergeRadioBtnLeft+kRadioButtonWidth+kRadioBtnHorizSep
  110. #define kMergeTextWidth                100
  111. #define kMergeTextRight                kMergeTextLeft+kMergeTextWidth
  112.  
  113. #define kEmbedPictTop                kMergePictTop+kMergePictHeight+3
  114. #define kEmbedPictHeight            kMergePictHeight
  115. #define kEmbedPictWidth                kMergePictWidth
  116.  
  117. #define kEmbedRadioBtnTop            kEmbedPictTop+2
  118. #define kEmbedRadioBtnLeft            kMergeRadioBtnLeft
  119. #define kEmbedTextTop                kEmbedRadioBtnTop+kLargeToSmallVerticalOffset
  120. #define kEmbedTextLeft                kMergeTextLeft
  121. #define kEmbedTextWidth                51
  122. #define kEmbedTextRight                kEmbedTextLeft+kEmbedTextWidth
  123.  
  124. #define kEmbedPopupTop                kEmbedRadioBtnTop-1
  125. #define kEmbedPopupLeft                kEmbedTextLeft+kEmbedTextWidth
  126.  
  127. #define kKindPopupTop                140
  128. #define kKindPopupLeft                kMergeRadioBtnLeft-2
  129. #define kKindTextWidth                33
  130.  
  131. #define kEditorPopupTop                kKindPopupTop+21
  132. #define kEditorPopupLeft            kMergeRadioBtnLeft-10
  133. #define kEditorTextWidth            41
  134.  
  135.  
  136. //-------------------------------------------------------------------------------------
  137. // Paste As Dialog
  138. //-------------------------------------------------------------------------------------
  139.  
  140. resource 'DLOG' (kPasteAsDlgID
  141. #If ODDebug
  142. , "Paste As"
  143. #endif
  144. , purgeable) {
  145.     {0, 0, kDialogHeight, kDialogWidth},
  146.     movableDBoxProc,
  147.     invisible,
  148.     noGoAway,
  149.     0x0,
  150.     kPasteAsDlgID,
  151.     "Paste As",
  152.     alertPositionParentWindowScreen
  153. };
  154.  
  155. /* Color table for Paste As Dialog */
  156. resource 'dctb' (kPasteAsDlgID
  157. #If ODDebug
  158. , "Paste As"
  159. #endif
  160. , purgeable) {
  161.     0,
  162.     0,
  163.     {
  164.         wContentColor,0xFFFF,0xFFFF,0xFFFF
  165.     }
  166. };
  167.  
  168. /* Item list for Paste As… dialog */
  169. resource 'DITL' (kPasteAsDlgID
  170. #If ODDebug
  171. ,  "Paste As"
  172. #endif
  173. , purgeable) {
  174.     {    /* array DITLarray: 23 elements */
  175.         /* [1] */
  176.         { kBottomStop-kStdButtonHeight, 
  177.           kRightStop-kOkCancelWidth, 
  178.           kBottomStop, 
  179.           kRightStop
  180.         },
  181.         Button {
  182.             enabled,
  183.             "Paste"
  184.         },
  185.         /* [2] */
  186.         { kBottomStop-kStdButtonHeight,
  187.           kRightStop-kOkCancelWidth-kOkCancelSep-kOkCancelWidth,
  188.           kBottomStop,
  189.           kRightStop-kOkCancelWidth-kOkCancelSep
  190.         },
  191.         Button {
  192.             enabled,
  193.             "Cancel"
  194.         },
  195.         
  196.         /* [3] Paste with Link checkbox */
  197.         { kTopBegin,
  198.           kLeftBegin,
  199.           kTopBegin+kCheckboxHeight,
  200.           kPasteWithLinkTextRight
  201.         },
  202.         Control {
  203.             enabled,
  204.             kPasteAsCheckboxCtrlID
  205.         },
  206.  
  207.         /* [4] Update Links label (active appearance) */
  208.         { kUpdateLinksTop,
  209.           kUpdateLinksLeft,
  210.           kUpdateLinksTop+kLargeToSmallVerticalOffset+kSmallLineHeight,
  211.           kUpdateLinksLeft+kUpdateLinksWidth
  212.         },
  213.         StaticText {
  214.             disabled,
  215.             "Get Updates:"
  216.         },
  217.  
  218.         /* [5] Update Links label (inactive appearance) */
  219.         { kUpdateLinksTop,
  220.           kUpdateLinksLeft,
  221.           kUpdateLinksTop+kLargeToSmallVerticalOffset+kSmallLineHeight,
  222.           kUpdateLinksLeft+kUpdateLinksWidth
  223.         },
  224.         StaticText {
  225.             disabled,
  226.             "Get Updates:"
  227.         },
  228.  
  229.         /* [6] Automatic update radio button */
  230.         { kAutomaticRadioBtnTop,
  231.           kAutomaticRadioBtnLeft,
  232.           kAutomaticRadioBtnTop + kRadioButtonHeight,
  233.           kAutomaticTextRight
  234.         },
  235.         Control {
  236.             enabled,
  237.             kPasteAsAutoRadioBtnCtrlID
  238.         },
  239.  
  240.         /* [7] Manual update radio button */
  241.         { kManualRadioBtnTop,
  242.           kManualRadioBtnLeft,
  243.           kManualRadioBtnTop + kRadioButtonHeight,
  244.           kManualTextRight
  245.         },
  246.         Control {
  247.             enabled,
  248.             kPasteAsManualRadioBtnCtrlID
  249.         },
  250.  
  251.         /* [8] Horizontal Separator */
  252.         { kHorizSepTop,
  253.           kLeftBegin,
  254.           kHorizSepTop + 1,
  255.           kRightStop
  256.         },
  257.         UserItem {
  258.             enabled
  259.         },
  260.  
  261.         /* [9] At the destination text */
  262.         { kAtDestTextTop,
  263.           kLeftBegin,
  264.           kAtDestTextTop + kSmallLineHeight,
  265.           kRightStop
  266.         },
  267.         StaticText {
  268.             disabled,
  269.             "At the Destination:"
  270.         },
  271.  
  272.         /* [10] Merge Pict */
  273.         { kMergePictTop,
  274.           kLeftBegin,
  275.           kMergePictTop + kMergePictHeight,
  276.           kLeftBegin + kMergePictWidth
  277.         },
  278.         Picture {
  279.             enabled,
  280.             kPasteAsMergePictID
  281.         },
  282.  
  283.         /* [11] User item to disable previous item */
  284.         { 0,0,0,0 },
  285.         UserItem {
  286.             disabled,
  287.         },
  288.  
  289.         /* [12] Merge radio button */
  290.         { kMergeRadioBtnTop,
  291.           kMergeRadioBtnLeft,
  292.           kMergeRadioBtnTop + kRadioButtonHeight,
  293.           kMergeTextRight
  294.         },
  295.         Control {
  296.             enabled,
  297.             kPasteAsMergeRadioBtnCtrlID
  298.         },
  299.  
  300.         /* [13] Embed Pict */
  301.         { kEmbedPictTop,
  302.           kLeftBegin,
  303.           kEmbedPictTop + kEmbedPictHeight,
  304.           kLeftBegin + kEmbedPictWidth
  305.         },
  306.         Picture {
  307.             enabled,
  308.             kPasteAsEmbedPictID
  309.         },
  310.  
  311.         /* [14] User item to disable previous item */
  312.         { 0,0,0,0 },
  313.         UserItem {
  314.             disabled,
  315.         },
  316.  
  317.         /* [15] Embed radio button */
  318.         /* The label of the Embed As radio button overlaps the title of the Embed As popup. */
  319.         /* The radio button item must be before the popup item, so mouse clicks over the */
  320.         /* label are handled by the radio button item, not the popup item. */
  321.         /* Both controls draw the text; this causes problems when the popup is disabled, */
  322.         /* since it will dim the text and the radio button will appear inactive. */
  323.         { kEmbedRadioBtnTop,
  324.           kEmbedRadioBtnLeft,
  325.           kEmbedRadioBtnTop + kRadioButtonHeight,
  326.           kEmbedTextRight
  327.         },
  328.         Control {
  329.             enabled,
  330.             kPasteAsEmbedRadioBtnCtrlID
  331.         },
  332.  
  333.         /* [16] Embed As popup menu */
  334.         { kEmbedPopupTop,
  335.           kEmbedPopupLeft,
  336.           kEmbedPopupTop + kPopupHeight,
  337.           kRightStop
  338.         },
  339.         Control {
  340.             enabled,
  341.             kPasteAsEmbedPopupCntl
  342.         },
  343.  
  344.         /* [17] Kind popup menu */
  345.         { kKindPopupTop,
  346.           kKindPopupLeft,
  347.           kKindPopupTop + kPopupHeight,
  348.           kRightStop
  349.         },
  350.         Control {
  351.             enabled,
  352.             kPasteAsKindPopupCntl
  353.         },
  354.  
  355.         /* [18] Kind label */
  356.         /* Used when the popup is unavailable because selecting a kind is not allowed */
  357.         { kKindPopupTop + 2,
  358.           kKindPopupLeft + 3,
  359.           kKindPopupTop + kSmallLineHeight,
  360.           kKindPopupLeft + 35
  361.         },
  362.         StaticText {
  363.             disabled,
  364.             "Kind:"
  365.         },
  366.  
  367.         /* [19] Current kind */
  368.         /* Used when the popup is unavailable because selecting a kind is not allowed */
  369.         { kKindPopupTop + 2,
  370.           kKindPopupLeft + /* arbitrary */ 47,
  371.           kKindPopupTop + kPopupHeight,
  372.           kRightStop
  373.         },
  374.         StaticText {
  375.             disabled,
  376.             ""
  377.         },
  378.  
  379.         /* [20] Editor popup menu */
  380.         { kEditorPopupTop,
  381.           kEditorPopupLeft,
  382.           kEditorPopupTop + kPopupHeight,
  383.           kRightStop
  384.         },
  385.         Control {
  386.             enabled,
  387.             kPasteAsEditorPopupCntl
  388.         },
  389.  
  390.         /* [21] Editor label */
  391.         /* Used when the popup is unavailable because selecting a Editor is not allowed */
  392.         { kEditorPopupTop + 2,
  393.           kEditorPopupLeft + 3,
  394.           kEditorPopupTop + kSmallLineHeight,
  395.           kEditorPopupLeft + 38
  396.         },
  397.         StaticText {
  398.             disabled,
  399.             "Editor:"
  400.         },
  401.  
  402.         /* [22] Current Editor */
  403.         /* Used when the popup is unavailable because selecting a Editor is not allowed */
  404.         { kEditorPopupTop + 2,
  405.           kEditorPopupLeft + 55,
  406.           kEditorPopupTop + kPopupHeight,
  407.           kRightStop
  408.         },
  409.         StaticText {
  410.             disabled,
  411.             "Unknown"
  412.         },
  413.  
  414.         /* [23] Embedded Editor */
  415.         /* Used when the popup is unavailable because a frame is being moved */
  416.         { kEditorPopupTop + 2,
  417.           kEditorPopupLeft + 55,
  418.           kEditorPopupTop + kPopupHeight,
  419.           kRightStop
  420.         },
  421.         StaticText {
  422.             disabled,
  423.             "Unknown"
  424.         }
  425.         /* [25] */
  426. #ifdef _APPLEGUIDE_READY_
  427.         ,{kBottomStop-2-16, 10, kBottomStop-2, 26},
  428.         Control {
  429.             enabled,
  430.             kAppleGuideButton
  431.         }
  432. #endif
  433.     }
  434. };
  435.  
  436. /* Color table for Paste As Dialog items */
  437. data 'ictb' (kPasteAsDlgID,
  438. #if ODDebug
  439. "Paste As",
  440. #endif
  441. purgeable /*<eeh> added for 1384356*/) {
  442.     $"0000 0000" /* [1]  OK button is unaffected                            */
  443.     $"0000 0000" /* [2]  Cancel button is unaffected                        */
  444.     $"0000 0000" /* [3]  Paste with Link checkbox is unaffected                */
  445.     $"0000 0000" /* [4]  Update Links label (enabled) is unaffected            */
  446.     $"4000 0060" /* [5]  Update Links label (disabled) change mode            */
  447.     $"0000 0000" /* [6]  Automatic update radio button is unaffected        */
  448.     $"0000 0000" /* [7]  Manual update radio button is unaffected            */
  449.     $"0000 0000" /* [8]  Horizontal Separator is unaffected                    */
  450.     $"0000 0000" /* [9]  At the destination text is unaffected                */
  451.     $"0000 0000" /* [10] Merge Pict is unaffected                            */
  452.     $"0000 0000" /* [11] User item for disabling is unaffected                */
  453.     $"0000 0000" /* [12] Merge radio button is unaffected                    */
  454.     $"0000 0000" /* [13] Embed Pict is unaffected                            */
  455.     $"0000 0000" /* [14] User item for disabling is unaffected                */
  456.     $"0000 0000" /* [15] Embed radio button is unaffected                    */
  457.     $"0000 0000" /* [16] Embed As popup menu is unaffected                    */
  458.     $"0000 0000" /* [17] Kind popup menu is unaffected                        */
  459.     $"0000 0000" /* [18]                                                     */
  460.     $"0000 0000" /* [19]                                                     */
  461.     $"0000 0000" /* [20]                                                     */
  462.     $"0000 0000" /* [21]                                                     */
  463.     $"0000 0000" /* [22]                                                     */
  464.     $"0000 0000" /* [23]                                                     */
  465.     $"0000 0000" /* [24]                                                     */
  466.     /* Text style record */
  467.     $"0003 0100 000A"      /* Geneva, Bold, 10 */
  468.     $"0000 0000 0000"      /* fore color       */
  469.     $"0000 0000 0000"      /* back color       */
  470.     $"0031"                /* mode = grayishTextOr = 49 */
  471. };
  472.  
  473. /* Window font for Paste As Dialog items */
  474. resource 'finf' (kPasteAsDlgID, purgeable) {
  475.     {
  476.         3,            /* Font Number, 3 = Geneva    */
  477.         plain,        /*         Font Style        */
  478.         10            /*         Font Size        */
  479.     }
  480. };
  481.  
  482. resource 'CNTL' (kPasteAsCheckboxCtrlID, purgeable) {
  483.         { kTopBegin,
  484.           kLeftBegin,
  485.           kTopBegin+kCheckboxHeight,
  486.           kPasteWithLinkTextRight
  487.         },
  488.         0,
  489.         visible,
  490.         1,
  491.         0,
  492.         checkboxProcUseWFont,
  493.         0,                            /* Refcon */
  494.         "Paste with Link"
  495. };
  496.  
  497. resource 'CNTL' (kPasteAsAutoRadioBtnCtrlID, purgeable) {
  498.         { kAutomaticRadioBtnTop,
  499.           kAutomaticRadioBtnLeft,
  500.           kAutomaticRadioBtnTop + kRadioButtonHeight,
  501.           kAutomaticTextRight
  502.         },
  503.         0,
  504.         visible,
  505.         1,
  506.         0,
  507.         radioButProcUseWFont,
  508.         0,                            /* Refcon */
  509.         "Automatically"
  510. };
  511.  
  512. resource 'CNTL' (kPasteAsManualRadioBtnCtrlID, purgeable) {
  513.         { kManualRadioBtnTop,
  514.           kManualRadioBtnLeft,
  515.           kManualRadioBtnTop + kRadioButtonHeight,
  516.           kManualTextRight
  517.         },
  518.         0,
  519.         visible,
  520.         1,
  521.         0,
  522.         radioButProcUseWFont,
  523.         0,                            /* Refcon */
  524.         "Manually"
  525. };
  526.  
  527. resource 'CNTL' (kPasteAsMergeRadioBtnCtrlID, purgeable) {
  528.         { kMergeRadioBtnTop,
  529.           kMergeRadioBtnLeft,
  530.           kMergeRadioBtnTop + kRadioButtonHeight,
  531.           kMergeTextRight
  532.         },
  533.         0,
  534.         visible,
  535.         1,
  536.         0,
  537.         radioButProcUseWFont,
  538.         0,                            /* Refcon */
  539.         "Merge with Contents"
  540. };
  541.  
  542. resource 'CNTL' (kPasteAsEmbedRadioBtnCtrlID, purgeable) {
  543.         { kEmbedRadioBtnTop,
  544.           kEmbedRadioBtnLeft,
  545.           kEmbedRadioBtnTop + kRadioButtonHeight,
  546.           kEmbedTextRight
  547.         },
  548.         0,
  549.         visible,
  550.         1,
  551.         0,
  552.         radioButProcUseWFont,
  553.         0,                            /* Refcon */
  554.         "Embed as:"
  555. };
  556.  
  557. resource 'PICT' (kPasteAsMergePictID
  558. #If ODDebug
  559. , "Merge Icon"
  560. #endif
  561. , purgeable) {
  562.     97,
  563.     {0, 0, 19, 16},
  564.     $"1101 A000 8201 000A 0000 0000 0020 0020"
  565.     $"9000 0200 0000 0000 1300 1000 0000 0000"
  566.     $"1300 1000 0000 0000 1300 1000 00FF FF80"
  567.     $"0180 0192 4980 0180 0193 F980 0180 019F"
  568.     $"F980 0180 019F C980 0180 0192 4980 0180"
  569.     $"01FF FFA0 0083 FF"
  570. };
  571.  
  572. resource 'PICT' (kPasteAsEmbedPictID
  573. #If ODDebug
  574. , "Embed Icon"
  575. #endif
  576. , purgeable) {
  577.     97,
  578.     {0, 0, 19, 16},
  579.     $"1101 A000 8201 000A 0000 0000 0020 0020"
  580.     $"9000 0200 0000 0000 1300 1000 0000 0000"
  581.     $"1300 1000 0000 0000 1300 1000 00FF FF80"
  582.     $"0180 0192 4980 0180 0193 F982 0982 0992"
  583.     $"0982 0982 0993 F980 0180 0192 4980 0180"
  584.     $"01FF FFA0 0083 FF"
  585. };
  586.  
  587. // The "Embed as" popup has no title, because the radio button label occupies the
  588. // same space.  If the radio button isn't selected, the popup is disabled.  If the
  589. // popup had a title which exactly overlayed the radio button label, the title
  590. // would be dimmed and the radio button would appear disabled.
  591. resource 'CNTL' (kPasteAsEmbedPopupCntl
  592. #If ODDebug
  593. , "Embed as"
  594. #endif
  595. , purgeable) {
  596.         { kEmbedPopupTop,
  597.           kEmbedPopupLeft,
  598.           kEmbedPopupTop + kPopupHeight,
  599.           kRightStop
  600.         },
  601.         popupTitleLeftJust,
  602.         visible,
  603.         0,                            /* zero width title; radio button provides title */
  604.         kPasteAsEmbedPopupMenu,        /* resource id of MENU resource */
  605.         popupMenuCDEFproc+popupUseWFont+popupFixedWidth,
  606.         0,                            /* Refcon */
  607.         ""
  608. };
  609.  
  610. resource 'CNTL' (kPasteAsKindPopupCntl
  611. #If ODDebug
  612. , "Kind"
  613. #endif
  614. , purgeable) {
  615.         { kKindPopupTop,
  616.           kKindPopupLeft,
  617.           kKindPopupTop + kPopupHeight,
  618.           kRightStop
  619.         },
  620.         popupTitleLeftJust,
  621.         visible,
  622.         kKindTextWidth,                /* width of title in pixels     */
  623.         kPasteAsKindPopupMenu,        /* resource id of MENU resource */
  624.         popupMenuCDEFproc+popupUseWFont+popupFixedWidth,
  625.         0,                            /* Refcon */
  626.         "Kind:"
  627. };
  628.  
  629. resource 'CNTL' (kPasteAsEditorPopupCntl
  630. #If ODDebug
  631. ,"Editor"
  632. #endif
  633. , purgeable) {
  634.         { kEditorPopupTop,
  635.           kEditorPopupLeft,
  636.           kEditorPopupTop + kPopupHeight,
  637.           kRightStop
  638.         },
  639.         popupTitleLeftJust,
  640.         visible,
  641.         kEditorTextWidth,                /* width of title in pixels     */
  642.         kPasteAsEditorPopupMenu,        /* resource id of MENU resource */
  643.         popupMenuCDEFproc+popupUseWFont+popupFixedWidth,
  644.         0,                            /* Refcon */
  645.         "Editor:"
  646. };
  647.  
  648. resource 'MENU' (kPasteAsEmbedPopupMenu
  649. #If ODDebug
  650. , "Embed as"
  651. #endif
  652. , nonpurgeable) {    // 'MENU' resources must not be purgeable [cc]
  653.     kPasteAsEmbedPopupMenu,
  654.     textMenuProc,
  655.     allEnabled,
  656.     enabled,
  657.     "",
  658.     {    /* array: 4 elements */
  659.         "Frame", noIcon, noKey, noMark, plain,
  660.         "Large Icon", noIcon, noKey, noMark, plain,
  661.         "Small Icon", noIcon, noKey, noMark, plain,
  662.         "Thumbnail", noIcon, noKey, noMark, plain
  663.     }
  664. };
  665.  
  666. resource 'MENU' (kPasteAsKindPopupMenu
  667. #If ODDebug
  668. , "Kind"
  669. #endif
  670. , nonpurgeable) {
  671.     kPasteAsKindPopupMenu,
  672.     textMenuProc,
  673.     allEnabled,
  674.     enabled,
  675.     "",
  676.     {    /* array: 1 elements */
  677.         "Translate to…", noIcon, noKey, noMark, italic
  678.     }
  679. };
  680.  
  681. resource 'MENU' (kPasteAsEditorPopupMenu
  682. #If ODDebug
  683. , "Editor"
  684. #endif
  685. , nonpurgeable) {
  686.     kPasteAsEditorPopupMenu,
  687.     textMenuProc,
  688.     allEnabled,
  689.     enabled,
  690.     "",
  691.     {    /* array: 0 elements */
  692.         "<Your editor goes here>", noIcon, noKey, noMark, plain
  693.     }
  694. };
  695.  
  696. //-------------------------------------------------------------------------------------
  697. // Link Source Info Dialog
  698. //-------------------------------------------------------------------------------------
  699.  
  700. #define kLinkDlgLabelRight 87
  701. #define kLinkDlgInfoLeft   97
  702. #define kLinkDlgInfoRight  256
  703.  
  704. resource 'DLOG' (kLinkSrcInfoDlgID
  705. #If ODDebug
  706. , "Link Source Info"
  707. #endif
  708. , purgeable) {
  709.     {74, 114, 235, 487},
  710.     movableDBoxProc,
  711.     visible,
  712.     goAway,
  713.     0x0,
  714.     kLinkSrcInfoDlgID,
  715.     "Link Source Info",
  716.     alertPositionParentWindowScreen
  717. };
  718.  
  719. resource 'DITL' (kLinkSrcInfoDlgID
  720. #If ODDebug
  721. , "Link Source Info"
  722. #endif
  723. , purgeable) {
  724.     {    /* array DITLarray: 16 elements */
  725.         /* [1] kLinkSrcOKBtn */
  726.         {131, 268, 151, 359},
  727.         Button {
  728.             enabled,
  729.             "OK"
  730.         },
  731.         /* [2] kLinkSrcCancelBtn */
  732.         {100, 264, 120, 363},
  733.         Button {
  734.             enabled,
  735.             "Cancel"
  736.         },
  737.         /* [3] kLinkSrcSeparator */
  738.         {76, 264, 77, 363},
  739.         UserItem {
  740.             disabled
  741.         },
  742.         /* [4] NOT USED IN THIS DIALOG; used as a placeholder to keep item numbers
  743.          *                              the same between LinkSrc and LinkDst
  744.          */
  745.         {0, 0, 0, 0},
  746.         Button {
  747.             enabled,
  748.             "Find Source"
  749.         },
  750.         /* [5] kLinkSrcUpdateBtn */
  751.         {34, 264, 54, 363},
  752.         Button {
  753.             enabled,
  754.             "Update Now"
  755.         },
  756.         /* [6] kLinkSrcBreakLinkBtn */
  757.         {7, 264, 27, 363},
  758.         Button {
  759.             enabled,
  760.             "Break Link"
  761.         },
  762.         /* [7] kLinkSrcManualRadioBtn */
  763.         {87, kLinkDlgInfoLeft-3, 102, 172},
  764.         Control {
  765.             enabled,
  766.             kManualRadioBtnCtrlID
  767.         },
  768.         /* [8] kLinkSrcOnSaveRadioBtn */
  769.         {71, kLinkDlgInfoLeft-3, 86, 172},
  770.         Control {
  771.             enabled,
  772.             kOnSaveRadioBtnCtrlID
  773.         },
  774.         /* [9] */
  775.         {71, 8, 87, kLinkDlgLabelRight+1},
  776.         StaticText {
  777.             disabled,
  778.             "Send Updates:"
  779.         },
  780.         /* [10] Modified Date */
  781.         {50, kLinkDlgInfoLeft, 66, kLinkDlgInfoRight},
  782.         StaticText {
  783.             disabled,
  784.             "^2  ^3"
  785.         },
  786.         /* [11] Modified Label */
  787.         {50, 38, 66, kLinkDlgLabelRight},
  788.         StaticText {
  789.             disabled,
  790.             "Updated:"
  791.         },
  792.         /* [12] Creation Date */
  793.         {29, kLinkDlgInfoLeft, 45, kLinkDlgInfoRight},
  794.         StaticText {
  795.             disabled,
  796.             "^0  ^1"
  797.         },
  798.         /* [13] Created Label */
  799.         {29, 39, 45, kLinkDlgLabelRight},
  800.         StaticText {
  801.             disabled,
  802.             "Created:"
  803.         },
  804.         /* [14] Kind */
  805.         {8, kLinkDlgInfoLeft, 24, kLinkDlgInfoRight},
  806.         StaticText {
  807.             disabled,
  808.             "Unknown"
  809.         },
  810.         /* [15] Kind Label */
  811.         {8, 56, 24, kLinkDlgLabelRight},
  812.         StaticText {
  813.             disabled,
  814.             "Kind:"
  815.         }
  816.         /* [16] */
  817. #ifdef _APPLEGUIDE_READY_
  818.         ,{151 - 16, 10, 151, 26},
  819.         Control {
  820.             enabled,
  821.             kAppleGuideButton
  822.         }
  823. #endif
  824.     }
  825. };
  826.  
  827. resource 'dctb' (kLinkSrcInfoDlgID, purgeable) {
  828.     0,
  829.     0,
  830.     {
  831.         wContentColor,0xFFFF,0xFFFF,0xFFFF
  832.     }
  833. };
  834.  
  835. data 'ictb' (kLinkSrcInfoDlgID, purgeable) {
  836.     $"0000 0000" /* [1]  */
  837.     $"0000 0000" /* [2]  */
  838.     $"0000 0000" /* [3]  */
  839.     $"0000 0000" /* [4]  */
  840.     $"0000 0000" /* [5]  */
  841.     $"0000 0000" /* [6]  */
  842.     $"0000 0000" /* [7]  */
  843.     $"0000 0000" /* [8]  */
  844.     $"0002 0040" /* [9] Static text label is Geneva 10 bold */
  845.     $"0000 0000" /* [10] */
  846.     $"0002 0040" /* [11] Static text label is Geneva 10 bold */
  847.     $"0000 0000" /* [12] */
  848.     $"0002 0040" /* [13] Static text label is Geneva 10 bold */
  849.     $"0000 0000" /* [14] */
  850.     $"0002 0040" /* [15] Static text label is Geneva 10 bold */
  851.     $"0000 0000" /* [16]  */
  852.     /* Text style record */
  853.     $"0001 0100 000A"      /* application font, Bold (high byte), size 10 */
  854.     $"0000 0000 0000"      /* fore color        */
  855.     $"0000 0000 0000 0000" /* back color + mode */
  856. };
  857.  
  858. resource 'finf' (kLinkSrcInfoDlgID, purgeable) {
  859.     {
  860.         3,            /* Font Number, 3 = Geneva    */
  861.         plain,        /*         Font Style        */
  862.         10            /*         Font Size        */
  863.     }
  864. };
  865. //-------------------------------------------------------------------------------------
  866. // Link Destination Info Dialog
  867. //-------------------------------------------------------------------------------------
  868.  
  869. resource 'DLOG' (kLinkDstInfoDlgID
  870. #If ODDebug
  871. , "Link Destination Info"
  872. #endif
  873. , purgeable) {
  874.     {74, 114, 235, 487},
  875.     movableDBoxProc,
  876.     visible,
  877.     goAway,
  878.     0x0,
  879.     kLinkDstInfoDlgID,
  880.     "Link Destination Info",
  881.     alertPositionParentWindowScreen
  882. };
  883.  
  884. resource 'DITL' (kLinkDstInfoDlgID
  885. #If ODDebug
  886. , "Link Destination Info"
  887. #endif
  888. , purgeable) {
  889.     {    /* array DITLarray: 16 elements */
  890.         /* [1] kLinkDstOKBtn */
  891.         {131, 268, 151, 359},
  892.         Button {
  893.             enabled,
  894.             "OK"
  895.         },
  896.         /* [2] kLinkDstCancelBtn */
  897.         {100, 264, 120, 363},
  898.         Button {
  899.             enabled,
  900.             "Cancel"
  901.         },
  902.         /* [3] kLinkDstSeparator */
  903.         {90, 264, 91, 363},
  904.         UserItem {
  905.             disabled
  906.         },
  907.         /* [4] kLinkDstFindSrcBtn */
  908.         {61, 264, 81, 363},
  909.         Button {
  910.             enabled,
  911.             "Find Source"
  912.         },
  913.         /* [5] kLinkDstUpdateBtn */
  914.         {34, 264, 54, 363},
  915.         Button {
  916.             enabled,
  917.             "Update Now"
  918.         },
  919.         /* [6] kLinkDstBreakLinkBtn */
  920.         {7, 264, 27, 363},
  921.         Button {
  922.             enabled,
  923.             "Break Link"
  924.         },
  925.         /* [7] kLinkDstManualRadioBtn */
  926.         {87, kLinkDlgInfoLeft-3, 102, 172},
  927.         Control {
  928.             enabled,
  929.             kManualRadioBtnCtrlID
  930.         },
  931.         /* [8] kLinkDstAutoRadioBtn */
  932.         {71, kLinkDlgInfoLeft-3, 86, 192},
  933.         Control {
  934.             enabled,
  935.             kAutomaticRadioBtnCtrlID
  936.         },
  937.         /* [9] */
  938.         {71, 16, 87, kLinkDlgLabelRight},
  939.         StaticText {
  940.             disabled,
  941.             "Get Updates:"
  942.         },
  943.         /* [10] Modified Date */
  944.         {50, kLinkDlgInfoLeft, 66, kLinkDlgInfoRight},
  945.         StaticText {
  946.             disabled,
  947.             "^2  ^3"
  948.         },
  949.         /* [11] Modified Label */
  950.         {50, 38, 66, kLinkDlgLabelRight},
  951.         StaticText {
  952.             disabled,
  953.             "Updated:"
  954.         },
  955.         /* [12] Creation Date */
  956.         {29, kLinkDlgInfoLeft, 45, kLinkDlgInfoRight},
  957.         StaticText {
  958.             disabled,
  959.             "^0  ^1"
  960.         },
  961.         /* [13] Created Label */
  962.         {29, 39, 45, kLinkDlgLabelRight},
  963.         StaticText {
  964.             disabled,
  965.             "Created:"
  966.         },
  967.         /* [14] Kind */
  968.         {8, kLinkDlgInfoLeft, 24, kLinkDlgInfoRight},
  969.         StaticText {
  970.             disabled,
  971.             "Unknown"
  972.         },
  973.         /* [15] Kind Label */
  974.         {8, 56, 24, kLinkDlgLabelRight},
  975.         StaticText {
  976.             disabled,
  977.             "Kind:"
  978.         }
  979.         /* [16] */
  980. #ifdef _APPLEGUIDE_READY_
  981.         ,{151 - 16, 10, 151, 26},
  982.         Control {
  983.             enabled,
  984.             kAppleGuideButton
  985.         }
  986. #endif
  987.     }
  988. };
  989.  
  990. resource 'dctb' (kLinkDstInfoDlgID, purgeable) {
  991.     0,
  992.     0,
  993.     {
  994.         wContentColor,0xFFFF,0xFFFF,0xFFFF
  995.     }
  996. };
  997.  
  998. data 'ictb' (kLinkDstInfoDlgID, purgeable /*<eeh> added for 1384356*/) {
  999.     $"0000 0000" /* [1]  */
  1000.     $"0000 0000" /* [2]  */
  1001.     $"0000 0000" /* [3]  */
  1002.     $"0000 0000" /* [4]  */
  1003.     $"0000 0000" /* [5]  */
  1004.     $"0000 0000" /* [6]  */
  1005.     $"0000 0000" /* [7]  */
  1006.     $"0000 0000" /* [8]  */
  1007.     $"0002 0040" /* [9] Static text label is Geneva 10 bold */
  1008.     $"0000 0000" /* [10] */
  1009.     $"0002 0040" /* [11] Static text label is Geneva 10 bold */
  1010.     $"0000 0000" /* [12] */
  1011.     $"0002 0040" /* [13] Static text label is Geneva 10 bold */
  1012.     $"0000 0000" /* [14] */
  1013.     $"0002 0040" /* [15] Static text label is Geneva 10 bold */
  1014.     $"0000 0000" /* [16]  */
  1015.     /* Text style record */
  1016.     $"0001 0100 000A"      /* application font, Bold (high byte), size 10 */
  1017.     $"0000 0000 0000"      /* fore color        */
  1018.     $"0000 0000 0000 0000" /* back color + mode */
  1019. };
  1020.  
  1021. resource 'finf' (kLinkDstInfoDlgID, purgeable) {
  1022.     {
  1023.         3,            /* Font Number, 3 = Geneva    */
  1024.         plain,        /*         Font Style        */
  1025.         10            /*         Font Size        */
  1026.     }
  1027. };
  1028.  
  1029. resource 'CNTL' (kAutomaticRadioBtnCtrlID, purgeable) {
  1030.         {90, kLinkDlgInfoLeft-3, 105, 192},
  1031.         0,
  1032.         visible,
  1033.         1,
  1034.         0,
  1035.         radioButProcUseWFont,
  1036.         0,                            /* Refcon */
  1037.         "Automatically"
  1038. };
  1039.  
  1040. resource 'CNTL' (kOnSaveRadioBtnCtrlID, purgeable) {
  1041.         {90, kLinkDlgInfoLeft-3, 105, 172},
  1042.         0,
  1043.         visible,
  1044.         1,
  1045.         0,
  1046.         radioButProcUseWFont,
  1047.         0,                            /* Refcon */
  1048.         "On Save"
  1049. };
  1050.  
  1051. resource 'CNTL' (kManualRadioBtnCtrlID, purgeable) {
  1052.         {106, kLinkDlgInfoLeft-3, 121, 172},
  1053.         0,
  1054.         visible,
  1055.         1,
  1056.         0,
  1057.         radioButProcUseWFont,
  1058.         0,                            /* Refcon */
  1059.         "Manually"
  1060. };
  1061.  
  1062. #if 0
  1063. // Apparently not used [cc]
  1064. //-------------------------------------------------------------------------------------
  1065. // Color pattern used by link dialogs
  1066. //-------------------------------------------------------------------------------------
  1067.  
  1068. data 'ppat' (kLinkDlgsppatID) {
  1069.     $"0001 0000 001C 0000 004E 0000 0000 FFFF"
  1070.     $"0000 0000 AA55 AA55 AA55 AA55 0000 0000"
  1071.     $"8001 0000 0000 0008 0008 0000 0000 0000"
  1072.     $"0000 0048 0000 0048 0000 0000 0001 0001"
  1073.     $"0001 0000 0000 0000 0056 0000 0000 55AA"
  1074.     $"55AA 55AA 55AA 0000 0000 0000 0001 0000"
  1075.     $"7777 7777 7777 0001 8888 8888 8888"
  1076. };
  1077. #endif
  1078.  
  1079. //-------------------------------------------------------------------------------------
  1080. // Strings used by Link Info dialogs
  1081. //-------------------------------------------------------------------------------------
  1082.  
  1083. resource 'STR ' (kODLinkInfoStrUnknownID, purgeable) {
  1084.     "Unknown"
  1085. };
  1086.  
  1087. #if 0
  1088. // Apparently not used [cc]
  1089. //-------------------------------------------------------------------------------------
  1090. // Strings used by Paste As dialogs
  1091. //-------------------------------------------------------------------------------------
  1092.  
  1093. resource 'STR ' (kODPasteAsNoUserKindID, purgeable) {
  1094.     "Unknown kind<I;"
  1095. };
  1096. #endif
  1097.